package com.tbit.uqbike.object.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tbit.uqbike.annos.Excel;
import com.tbit.uqbike.webmanager.util.csv.annotations.Csv;
import lombok.Data;

import java.util.Date;

/**
 * 用户分账日志
 *
 * @Author:BUGTian
 * @DATE: 2022/5/26
 */
@Data
public class SubAccountLog {

    /**
     * 用户编号
     */
    private String userNO;

    /**
     * 区域id
     */
    private Integer accountId;

    /**
     * 银行卡号
     */
    private String bankNO;

    /**
     * 分账订单号
     */
    private String orderNO;

    /**
     * 分成比例
     */
    @Excel(name = "分账比例", sort = 9)
    @Csv(name = "分账比例")
    private Double proportion;

    /**
     * 分账金额（单位：分）
     */
    private Integer money;

    /**
     * 手续费 汇付手续费
     */
    private Integer fee;

    /**
     * 支付平台订单号
     */
    private String paymentId;

    /**
     * 支付确认对象id
     */
    @Excel(name = "商户订单编号", sort =13)
    @Csv(name = "商户订单编号")
    private String confirmId;

    /**
     * 分账时间
     */
    @Excel(name = "日期", dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 1)
    @Csv(name = "日期")
    private Date addTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 品牌id
     */
    private Integer brandId;

    /**
     * 业务订单号
     */
    @Excel(name = "订单编号", sort = 3)
    @Csv(name = "订单编号",type = "'")
    private String buyOrderNO;

    /**
     * 业务订单类型（）
     */
    @Excel(name = "订单类型", readConverterExp = "-1=押金,0=充值,1=免押卡,2=骑行卡,3=充值结束订单,4=vip会员卡,5=优惠券套餐,7=欠款补交", sort = 4)
    @Csv(name = "订单类型", keys = {"-1", "0", "1", "2", "3", "4", "5","7"}, values = {"押金", "充值", "免押卡", "骑行卡", "充值结束订单", "vip会员卡", "优惠券套餐","欠款补交"})
    private Integer buyOrderType;

    /**
     * 退款金额（单位：分）
     */
    private Integer refundMoney;

    /**
     * 退款时间
     */
    private Date refundTime;

    /**
     * 订单金额（单位：分）
     */
    private Integer rechargeMoney;

    /**
     * 服务费用（单位：分） 平台服务费
     */
    private Integer serviceFee;

    /**
     * 是否服务费（0否、1是）
     */
    private Integer type;

}
